<%@ page contentType="text/html; charset=UTF-8" %> 
<%@page import="net.lunjin.util.Constants"%>
<%@page import="net.lunjin.bean.*"%>
<%@page import="net.lunjin.util.ProjectUtil"%>
<%@page import="finaler.util.PageList"%>
<%@page import="finaler.util.PageUtil"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Map"%>
<% 
	List<News> fmNewsList = (List<News>) request.getAttribute("fmNewsList");
	List<Map<String, Object>>  proxy5List = (List<Map<String, Object>> ) request.getAttribute("proxy5List");
	List<Map<String, Object>>  newRemarkList = (List<Map<String, Object>> ) request.getAttribute("newRemarkList");
%>

<script>
	function goToRecommend(){
		window.location='<%=Constants.URL %>/company/recommend.html';
		return false;
	}
</script>

<!-- body-->
<div class="w960 center clear mt1">
 <div class="indexpleft">
  <div class="bignews2">
  
   <div class="onenews2">
	<!-- CSS幻灯 -->
	<div class="flash1">
	<div class="box box-cols3 home-area1">
	<div class="c-1">
	<div class="slideshow" id="slideshow">
	<div class="image">
	     <ul>
	      <li>
	      	<iframe frameborder="0" width="276" height="218" src="<%=Constants.URL %>/index/ldj.sm"></iframe>
	      	<div class="caption">伦敦金实时行情走势图,每3秒自动更新</div>
	      </li>
	      <li>
	      	<iframe frameborder="0" width="276" height="218" src="<%=Constants.URL %>/index/zhj.sm"></iframe>
	      	<div class="caption">纸黄金实时行情走势图,每3秒自动更新</div>
	      </li>
	      <li>
	      	<iframe frameborder="0" width="276" height="218" src="<%=Constants.URL %>/index/hjtd.sm"></iframe>
	      	<div class="caption">黄金T+D实时行情走势图,每3秒自动更新</div>
	      </li>
	      <li>
	      	<iframe frameborder="0" width="276" height="218" src="<%=Constants.URL %>/index/ldy.sm"></iframe>
	      	<div class="caption">伦敦银实时行情走势图,每3秒自动更新</div>
	      </li>
	      <li>
	      	<iframe frameborder="0" width="276" height="218" src="<%=Constants.URL %>/index/zby.sm"></iframe>
	      	<div class="caption">纸白银实时行情走势图,每3秒自动更新</div>
	      </li>
	      <li>
	      	<iframe frameborder="0" width="276" height="218" src="<%=Constants.URL %>/index/bytd.sm"></iframe>
	      	<div class="caption">白银T+D实时行情走势图,每3秒自动更新</div>
	      </li>
    	</ul>
   		</div>
	    <ul class="trigger" id="trigger">
		     <li onclick="slideshow.pos(0)">伦敦金</li>
		     <li onclick="slideshow.pos(1)">纸黄金</li>
		     <li onclick="slideshow.pos(2)">金T+D</li>
		     <li onclick="slideshow.pos(3)">伦敦银</li>
		     <li onclick="slideshow.pos(4)">纸白银</li>
		     <li onclick="slideshow.pos(5)">银T+D</li>
	    </ul>
		    <script language="javascript" type="text/javascript" src="<%=Constants.URL %>/js/tinyslider.js"></script>
		    <script>
		     var slideshow=new TINY.slider.slide('slideshow',{
		      id:'slideshow',
		      auto:0,//几秒自动滚动,0不滚动
		      resume:false,
		      vertical:false,
		      navid:'trigger',
		      activeclass:'current',
		      position:0,
		      rewind:false,
		      elastic:true
		     });
		    </script>
	   </div>
	  </div>
	 </div>
	</div>
	<!-- //CSS幻灯 -->

	<!-- 头条 -->
	<div class="bignews1">	
	  <%for(int i=0;i<fmNewsList.size();i++){ %>
	  <%if(i==0){ %>
	 <!-- 今日头条 -->
	  <div class="toptt">
	  <h2><a href="<%=Constants.URL %>/news/<%=fmNewsList.get(0).getId()%>.html" target="_blank"><%=ProjectUtil.substring( fmNewsList.get(0).getNewstitle(),0,40)%></a></h2>
	    <p>　　<%=ProjectUtil.substring( fmNewsList.get(0).getNewscontent().replaceAll("<br/>", ""),0,180)%>...<a href="<%=Constants.URL %>/news/<%=fmNewsList.get(0).getId()%>.html" target="_blank">[查看详细]</a></p>
	  </div>
	 <!-- /今日头条 -->
	  <div class="toptt2">
	 <%}else{ %>
	 <!-- 头条列表 -->
	  	<div class='toptt2h'><a href="<%=Constants.URL %>/news/<%=fmNewsList.get(i).getId()%>.html" target="_blank">· <%=ProjectUtil.substring( fmNewsList.get(i).getNewstitle(),0,52)%></a>
	  	</div>
		<%}
	  } %>
	  <%if(fmNewsList.size()>0){out.print("</div>");} %>
	 <!-- /头条列表 -->
	</div>
	<!-- //头条 -->
	
   </div>
   
<!--平台搜索-->
<form id="searchForm" name="searchForm" action="<%=Constants.URL %>/company/all/" method="post">
	<div class="ddwnewshead clear"><p>平台搜索
		<span class="more" style="margin-top:3px;"><a href="<%=Constants.URL %>/company/add.html" target="_blank">如果找不到你想找的交易平台，请点击这里添加>></a></span>
		<span class="more" style="margin-top:3px;">&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=Constants.URL %>/company/highscore.html" target="_blank"><font color="green">[快速查看评分比较高的平台]</font></a>&nbsp;&nbsp;</span>
	</p>
	</div>
	<div class="ddwnews">
		<br/>
		　　<input type="text" id="searchkey" name="searchkey" class="txtsub" placeholder="交易平台的简短关键字,如:英皇、中信" />
			<input type="image" name="search" src="<%=Constants.URL %>/images/searchbtn.gif"  onclick="this.form.submit()">
			<input type="image" name="recommendbtn" src="<%=Constants.URL %>/images/recommendbtn.gif"  onclick="return goToRecommend();">
			<br/>
	            　　是否实体公司<select id="iscom" name="iscom"><option value="">所有</option><option value="1">是</option><option value="2">否</option></select>
　　　　　　金银经营资格<select id="able" name="able"><option value="">所有</option><option value="1">有</option><option value="2">无</option></select>
　　　　　　公司背景实力<select id="combg" name="combg"><option value="">所有</option><option value="1">雄厚</option><option value="2">一般</option></select>
	　	    <br/>      
	            　　资金安全度　<select id="secu" name="secu"><option value="">所有</option><option value="1">高</option><option value="0">中</option><option value="2">低</option></select>
　　　　　　入金出金速度<select id="speed" name="speed"><option value="">所有</option><option value="1">快</option><option value="0">中</option><option value="2">慢</option></select>
　　　　　　预测分析水平<select id="foruser" name="foruser"><option value="">所有</option><option value="1">高</option><option value="0">中</option><option value="2">低</option></select></select>
	            　	<br/><br/>
	</div>
</form>
<!--//平台搜索-->
   

<jsp:include page="/WEB-INF/jsp/company/orginclude.jsp"/>

</div>

<!--/中间部分结束-->
</div>

<!--右边开始-->

<!--本站荣誉-->
   <div class="latestnews">
	<dl class="right">
        <dt class='light'><strong style="margin-left:-8px;">本站功劳</strong>
			<span class="more" style="margin-top:3px;">
				<a href="<%=Constants.URL %>/company/want.html" target="_blank"><font color="red">查看详细>></font></a>
			</span>
		</dt>
   <dd style="height:45px">
			<div id="content">
				<div class="sub">		
					通过本站的交流与推荐,已有<font color="red" size="2"><b><%=request.getAttribute("wantCount")%></b></font>位投资者,准备在这里<br/>
					选择合适自己的交易平台,预祝他们投资顺利,财运亨通!</br>
					<font color="red">提示:</font>投资前先看看别人对各交易平台的评价,谨防上当!
				</div>
			</div>
        </dd>        
      </dl>
    </div>

<!--recommend-->
    <div class="ad">
		<dl class="adright">
			<A href="<%=Constants.URL %>/company/recommend.html" target="_blank"><img src="<%=Constants.URL %>/images/recommend.gif" alt="pic" width="340" height="60" border="0"/></A>
		</dl>
	</div>
<!--//recommend-->

<jsp:include page="/WEB-INF/jsp/bbs/bbsInclude.jsp"/>
<jsp:include page="/WEB-INF/jsp/tag/3dTag.jsp"/>
	

<!-- 个人代理展现 -->
    <div class="latestnews">
    	<dl class="right">
        	<dt class='light'><strong style="margin-left:-8px;">最新个人代理</strong></dt>
         	<dd class='light'>
			  <%for(int i=0;i<proxy5List.size();i++){ %>
				<ul class="e3">                
					<li>
					<a href="<%=Constants.URL %>/company/<%=proxy5List.get(i).get("orgid") %>.html" class="preview"><img src="<%=Constants.URL %>/images/people.gif" alt="pic"/></a>
					<a href="<%=Constants.URL %>/company/<%=proxy5List.get(i).get("orgid") %>.html" target="_blank" class="title"><%=proxy5List.get(i).get("orgname") %></a>
					<span class="intro">联系他:<span class="fc-f90"><%=proxy5List.get(i).get("telipqq") %></span></span>
					</li>
				</ul>
				<%}%>
			</dd>
		</dl>
	</div>
<!-- //个人代理展现  -->

<!-- 最新评论 -->
    <div class="latestnews">
		<dl class="right">
        <dt vlass='light'><strong>最新评论</strong></dt>
        <dd>
			<ul class="d7">
			<%for(int i=0;i<newRemarkList.size();i++){ %>
				<li><a href="<%=Constants.URL %>/company/<%=newRemarkList.get(i).get("orgid") %>.html" target="_blank">
				<%=newRemarkList.get(i).get("orgname") %></a>
	            	<p><%=newRemarkList.get(i).get("createuser") %>评论于<%=newRemarkList.get(i).get("createtime") %></p>
	            	<p>　　<%=ProjectUtil.substring( newRemarkList.get(i).get("rmcontent").toString(), 0, 96) %>...</p>
	            </li>
	        <%} %>
          </ul>
        </dd>
      </dl>
    </div>
<!--//最新评论-->

<jsp:include page="/WEB-INF/jsp/ad/rightad4.jsp"/>

<jsp:include page="/WEB-INF/jsp/news/knowNewsInclude.jsp"/>


</div>
<!--// body-->